Wdr\App\Helpers\Migration D

Total Complexity 273
Dependencies 5
Dependents 5
Total lines 1,128
Lines of code 983
Logical lines of code 676
Comment lines 77
Methods 37
Properties 4

Methods 37

Method Rating Maintainability Complexity Lines of code
processCartRulesConditions()
D
22
45 205
processPriceRulesQuantityBasedConditions()
C
36 28 74
processRanges()
C
36 27 73
processFilters()
B
38 22 69
splitRuleTypes()
A
45 16 41
processDiscountType()
A
43 15 48
processCumulativeOption()
A
52 10 27
processMigrationV1ToV2()
A
44 8 48
setCategoryCombinationConditions()
A
46 8 46
getPurchaseHistoryDuration()
A
53 9 24
createSampleRules()
A
48 7 32
getStateInFormat()
S
54 7 23
getV1Rules()
S
50 6 26
processConditions()
S
52 6 23
processCommonData()
S
59 6 13
processPriceRules()
S
60 5 13
filter_where()
S
59 5 13
migrateLicenceKey()
S
60 5 12
checkForMigration()
S
57 4 17
processCartDiscounts()
S
60 4 12
getSampleRules()
S
48 1 36
getDiscountTypeFromV1()
S
66 3 8
getData()
S
66 3 9
checkAndCreateSampleRules()
S
67 3 7
processAdvanceTable()
S
74 2 5
init()
S
69 2 7
getDiscountRange()
S
70 2 6
processCartRules()
S
68 2 7
updateMigrationInfo()
S
70 2 6
getMigrationInfoOf()
S
67 2 8
hasSwitchBackOption()
S
66 2 8
convertV1PriceRuleToV2()
S
64 1 11
convertV1CartRuleToV2()
S
66 1 9
processPriceRulesBasedOnType()
S
72 1 5
getMigrationInfo()
S
80 1 3
updateLicenceKeyInSettings()
S
72 1 5
__construct()
S
76 1 4